package jsu.lipengcheng.trafficnet.service;

import jsu.lipengcheng.trafficnet.common.PageResult;
import jsu.lipengcheng.trafficnet.pojo.Activity;

import java.time.LocalDate;
import java.util.List;

public interface ActivityService {
    Activity selectbyid(int id);

    List<Activity> selectall();

    PageResult selectbypage(Integer page, Integer pageSize, LocalDate start, LocalDate end, Integer score,String name);

    void insert(Activity activity);

    void update(Activity activity);

    void delete(Integer id);

    List<Activity> selectbystatus(Integer status);

    void insertuser(Integer id);

    List<Activity> findactivitybyuserid(Integer userid);

    int selectsum();

//    void creatactivity(Integer id, Integer userid);
}

